.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .wim {
    width: 160px;
    margin-right: 4px;
  }
  .nond {
    display: none;
  }
  .resource-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
  }
  .resource-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 240px;
    max-height: 400px;
    overflow-y: auto;
  }
  .resource-item {
    width: 120px;
    height: 120px;
    border: 2px solid transparent;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
  }
  .resource-item.selected {
    border-color: #409eff;
  }
  .resource-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
  }
  .file-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 4px;
  }
  .file-name {
    margin-top: 6px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  .resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
  }
  .resource-actions {
    display: flex;
    gap: 8px;
  }